<?php
return array(
    'DB_TYPE'   => 'mysql', // 数据库类型
    'DB_HOST'   => '127.0.0.1', // 服务器地址
    'DB_NAME'   => 'xinyan', // 数据库名
    'DB_USER'   => 'root', // 用户名
    'DB_PWD'    => 'grow1271', // 密码
    'DB_PORT'   => 3306, // 端口
    'DB_PREFIX' => 'xy_', // 数据库表前缀
    'DB_CHARSET'=> 'utf8', // 字符集
    'TMPL_L_DELIM'    =>    '<{',
    'TMPL_R_DELIM'    =>    '}>',

    'TOKEN_ON'      =>    false,  // 是否开启令牌验证 默认关闭
    'TOKEN_NAME'    =>    'token',    // 令牌验证的表单隐藏字段名称，默认为__hash__
    'TOKEN_TYPE'    =>    'md5',  //令牌哈希验证规则 默认为MD5
    'TOKEN_RESET'   =>    true,  //令牌验证出错后是否重置令牌 默认为true

    'API_KEY'      => 'api1271',
    'REGULAR_EMAIL' => '/\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/i',
    'REGULAR_MOBILE' => '/1\d{10}/',
    'REGULAR_USERNAME' => '/^[\x{4e00}-\x{9fa5}a-z\d_\.]{3,15}$/iu',
    'WWWROOT_URL' => 'http://'.$_SERVER['SERVER_NAME'],
    'whitelist' => array('15100000000','15200000000','15300000000','15400000000','15500000000','13516709742'),

    );
